package oop6.pet2;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest2 {
    public static void main(String[] args) {
        Dog d = new Dog("大黄", 2, "母", 100, 100, "狼狗");
        d.print();
        d.catchMouse("杰瑞");
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        Pet p = new Dog("二黄", 2, "母", 100, 100, "狼狗");
        p.print();
        //p.catchMouse("杰瑞");//错误
    }
}
